package cn.edu.zut.dao;

import cn.edu.zut.model.User;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 袁飞
 * @date 2019/6/1/00120:21
 */
@MapperScan
public interface UserDao {
    void insertUser(User user);
    User selectOneUserById(int id);
    User selectOneUserByName(String name);
    List<User> selectAllUser();
    void updateUserById(User user);
    void updateUserByName(User user);
    void deleteUserById(int id);
    void deleteUserByName(String name);
}
